Skip to content

x64: Remove an add128 lower rule that turns out just hurts - #14056

Open
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:remove-slow-lowering-rule
Open

x64: Remove an add128 lower rule that turns out just hurts #14056
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:remove-slow-lowering-rule

Conversation

@alexcrichton

@alexcrichton alexcrichton commented Jul 31, 2026

Copy link
Copy Markdown
Member

A local fib benchmark shows that without this lowering rule wasm is 8%
slower than native, whereas with this lowering rule it's 24% slower than
native. The "FIXME" comment turns out can be resolved by just deleting
the entire rule.

@alexcrichton
alexcrichton requested a review from a team as a code owner July 31, 2026 19:31
@alexcrichton
alexcrichton requested review from cfallin and removed request for a team July 31, 2026 19:31
A local `fib` benchmark shows that without this lowering rule wasm is 8%
slower than native, whereas with this lowering rule it's 24% slower than
native. The "FIXME" comment turns out can be resolved by just deleting
the entire rule.
@alexcrichton
alexcrichton force-pushed the remove-slow-lowering-rule branch from 0dcd5a7 to 0253b6b Compare July 31, 2026 19:31
@alexcrichton alexcrichton changed the title Remove slow lowering rule x64: Remove an add128 lower rule that turns out just hurts Jul 31, 2026
@alexcrichton

Copy link
Copy Markdown
Member Author

Sorry, hit submit too soon with too many commits, updated PR/description now

@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels Jul 31, 2026
@cfallin
cfallin added this pull request to the merge queue Aug 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 5, 2026
@alexcrichton
alexcrichton added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants